package com.guyaning.deyson_ec.ec.main.sort;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;

import com.guyaning.deyson_core.core.delegates.bottom.BottomItemDelegate;
import com.guyaning.deyson_ec.ec.R;
import com.guyaning.deyson_ec.ec.main.sort.content.ContentDelegate;
import com.guyaning.deyson_ec.ec.main.sort.list.VerticalListDelegate;

/**
 * Created by Administrator on 2018/6/5.
 */

public class SortDelegate extends BottomItemDelegate {
    @Override
    public Object setLayout() {
        return R.layout.delegate_sort;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, @NonNull View rootView) {

    }


    //初始化布局懒加载
    @Override
    public void onLazyInitView(@Nullable Bundle savedInstanceState) {
        super.onLazyInitView(savedInstanceState);

        VerticalListDelegate listDelegate = new VerticalListDelegate();

        loadRootFragment(R.id.sort_list_container,listDelegate);

        loadRootFragment(R.id.sort_content_container, ContentDelegate.newInstance(1),false,false);
    }
}
